import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import { createPinia } from 'pinia';
// import monitor from "../monitor.esm.js";
// import { findCodeBySourceMap } from './utils/source.js';
// import ErrorStackParser from 'error-stack-parser';
const app = createApp(App);

app.use(ElementPlus);
app.use(createPinia());
// app.use(monitor, {
//   url: "http://localhost:9010/api/report",
// });
app.mount('#app');

// app.config.errorHandler = (err, vm, info) => {
//   const errorStack = ErrorStackParser.parse(err);
//   findCodeBySourceMap({
//     info,
//     position: errorStack[0], // 第一个堆栈帧就是报错的位置
//   });
// };
